package com.deke.course.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.deke.course.vo.ClassData;
import com.deke.entity.AclRole;
import com.deke.entity.EduCourse;
import com.deke.vo.Result;

import java.util.List;

public interface EduCourseDao extends BaseMapper<EduCourse> {
    /**
     * 根据用户id查询收藏课程
     * @param memberId
     * @return
     */
    List<EduCourse> queryCourseShoucangByMemId(String memberId);
    ClassData queryCourseAndTeacherByCourseId(String courseId);

    Integer addCollectCourse(EduCourse eduCourse);

    Integer deleteFavoriteCourse(EduCourse eduCourse);

    Integer findFavoriteCourse(EduCourse course);
}
